<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <form:form modelAttribute="round" method="post" action="/admin/round/edit" >
            <table class="simple" >
                <tr>
                    <td>Match</td>
                    <td>
                        <c:out value="${player1.lastName}"/> vs. <c:out value="${player2.lastName}"/> (<c:out value="${round.match.dateAndTime}"/>)
                    </td>
                </tr>
                <tr>
                    <td>Round</td>
                    <td><c:out value="${round.sequenceNumber}"/></td>
                </tr>
                <tr>
                    <td>Score</td>
                    <td>
                        <form:input path="pointCount1" /> : <form:input path="pointCount2" /> (<c:out value="${player1.lastName}"/> : <c:out value="${player2.lastName}"/>)
                    </td>
                </tr>
            </table>

            <input type="submit" value="Edit" />

            <br>
            <br>
            <form:errors path="*"/>
        </form:form>
    </body>
</html>
